<template>
  <div>
    <van-nav-bar :style="{ backgroundColor: color }" :title="name" />
  </div>
</template>

<script>
export default {
  props: ["name", "color"],
};
</script>

<style lang="less" scoped>
/deep/ .van-nav-bar__title {
  color: white;
  font-size: 1rem;
}
</style>